Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SIH: Add Standard VTOL Airframe #24175

Merged
merged 6 commits into from
Jan 9, 2025

Conversation

mbjd
Copy link
Contributor

@mbjd mbjd commented Jan 7, 2025

Solved Problem

The standard VTOL airframe was previously not available for simulation-in-hardware (SIH). With these changes, it is.

Solution

We add a new SIH specific SVTOL airframe file, ROMFS/px4fmu_common/init.d/airframes/1103_standard_vtol_sih.hil. In src/modules/simulation/simulator_sih/sih.cpp, we add the corresponding SVTOL vehicle type. These are changes from this commit (thanks @RomanBapst), applied to upstream/main.

Changelog Entry

For release notes:

Feature: Support SIH for standard VTOL airframe. 
Documentation: Need to update on https://docs.px4.io/main/en/sim_sih/index.html

Test coverage

SIH test log: https://review.px4.io/plot_app?log=92dedeaf-78f7-4771-9556-fd8a0386d5b1

mbjd added 6 commits January 9, 2025 11:52
mostly took changes from 4d930bd and applied to main.

generate_fw_aerodynamics now takes four arguments rather than using the
_u class member, because depending on vehicle type _u is used
differently.
 - NB_MOTORS -> NB_ACTUATORS_MAX. the _u array also contains control
   surface deflections.
 - thrust -> throttle_cmd to match the other arguments
@mbjd mbjd force-pushed the standard_vtol_sih_integration_1 branch from f7cdc7a to 516a0cc Compare January 9, 2025 10:53
@KonradRudin KonradRudin merged commit a231faf into PX4:main Jan 9, 2025
56 of 58 checks passed
mbjd added a commit to PX4/PX4-user_guide that referenced this pull request Jan 10, 2025
Document SIH Standard VTOL Airframe, added in PX4/PX4-Autopilot#24175
mbjd added a commit to mbjd/PX4-Autopilot that referenced this pull request Jan 13, 2025
In PR PX4#24175 I changed the
control surface deflection signs in generate_fw_aerodynamics to make the
1103 airframe work correctly. However, this breaks the 1101 airframe,
introducing sing errors there.

So, here the change in generate_fw_aerodynamics is reverted to the state
before PR PX4#24175. Instead, the signs are set correctly by using
the HIL_ACT_REV bitfield in the respective airframe config files.
mbjd added a commit to mbjd/PX4-Autopilot that referenced this pull request Jan 13, 2025
In PR PX4#24175 I changed the
control surface deflection signs in generate_fw_aerodynamics to make the
1103 airframe work correctly. However, this breaks the 1101 airframe,
introducing sing errors there.

So, here the change in generate_fw_aerodynamics is reverted to the state
before PR PX4#24175. Instead, the signs are set correctly by using
the HIL_ACT_REV bitfield in the respective airframe config files.
mbjd added a commit to mbjd/PX4-Autopilot that referenced this pull request Jan 14, 2025
In PR PX4#24175 I changed the
control surface deflection signs in generate_fw_aerodynamics to make the
1103 airframe work correctly. However, this breaks the 1101 airframe,
introducing sing errors there.

So, here the change in generate_fw_aerodynamics is reverted to the state
before PR PX4#24175. Instead, the signs are set correctly by using
the HIL_ACT_REV bitfield in the respective airframe config files.
mbjd added a commit to mbjd/PX4-Autopilot that referenced this pull request Jan 15, 2025
In PR PX4#24175 I changed the
control surface deflection signs in generate_fw_aerodynamics to make the
1103 airframe work correctly. However, this breaks the 1101 airframe,
introducing sing errors there.

So, here the change in generate_fw_aerodynamics is reverted to the state
before PR PX4#24175. Instead, the signs are set correctly by using
the HIL_ACT_REV bitfield in the respective airframe config files.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants